﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Threading;

namespace UI_Layer
{
    /// <summary>
    /// Interaction logic for MainPage.xaml
    /// </summary>
    public partial class MainPage : Page
    {
        public MainPage()
        {
            InitializeComponent();            
            
            DispatcherTimer timer = new DispatcherTimer(new TimeSpan(0, 0, 1), DispatcherPriority.Normal, delegate
            {
                this.MainPage_Clock.Content = DateTime.Now.ToString("HH:mm:ss");
            }, this.Dispatcher); 
            
        }
        private void mouse_Click(object sender, RoutedEventArgs e)
        {            
            PaymentOptionsPage paymentoptions_page = new PaymentOptionsPage();
            
            
            NavigationService navservice = NavigationService.GetNavigationService(this);
            navservice.Navigate(paymentoptions_page);            
        }
    }
}
